/*
payload:
[
	{
		"type": "checkbox",
		"name": "Allow WebM-based media.",
		"setting": null,
		"description": "This option is required for qualities above 1080p."
	}
]
*/
const SettingsUI = {
	version: 0.1,
	put: function(location, payload) {
		if (payload === null || payload === undefined) throw new Error("payload is invalid!");
		if (!Array.isArray(payload)) throw Error("payload isn't an array!");
		if (location === null || location === undefined) throw new Error("Invalid location!");
		if (!location.appendChild) throw new Error("Invalid location object!");
		for (var i = 0; i < payload.length; i++) {
			const item = payload[i];
		}
	}
}
window.SettingsUI = SettingsUI;